import http  from '@/utils/http'
import { request } from 'express'

/**
 * @description: 获取分类数据
 * @param {*} id 分类id
 * @return {*}
 */
export function getCategoryAPI  (id) {
    return http({
        url: '/category',
        params: {
            id
        }
    })
}
//获取二级分类列表数据
export const getCategoryFilterAPI = (id) => {
return request({
  url:'/category/sub/filter',
  params:{
    id
  }
})
}
